package com.kust.smarthome.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("position")
@ApiModel("位置距离表")
public class Position implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id", required = true)
    private Integer id;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    @TableField("longitude")
    @ApiModelProperty(value = "经度", required = true)
    private Double longitude;

    @TableField("latitude")
    @ApiModelProperty(value = "纬度", required = true)
    private Double latitude;

    @TableField("max_distance")
    @ApiModelProperty(value = "最大距离", required = true)
    private Double maxDistance;



}
